]> dgit.raspbian.org Git - gnome-shell.git/commit
status/network: Sync active connections again on connection-added
authorJonas Dreßler <verdre@v0yd.nl>
Fri, 1 Mar 2024 16:24:37 +0000 (17:24 +0100)
committerJonas Dreßler <verdre@v0yd.nl>
Fri, 1 Mar 2024 16:32:07 +0000 (17:32 +0100)
commit723c0a6e6183ea3488798e8bc0467d74bf93170a
tree0e7210f23dc56f5fa048137dd46fb0b5403b2e6a
parent1e882ba8dca09643f66c8a63f1f650257e1ae0b8
status/network: Sync active connections again on connection-added

NetworkManagers NmClient has a bug for wireguard connections where the
notify::active-connections and connection-added are emitted in the wrong order:
When a wireguard connection gets activated, notify::active-connections is
emitted first, then connection-added happens.

We currently expect these signals to emitted in the correct order, so our VPN
toggle is not actually updated when a wireguard connection is established.

Until this bug is fixed in NetworkManager, work it around by calling
_syncActiveConnections() manually after we see ::connection-added.

NM issue: https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/1483

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6656
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3219>
js/ui/status/network.js